package com.finance.rule.service;

import com.finance.base.enums.DirectionEnum;
import com.finance.framework.lang.Page;
import com.finance.framework.lang.PageResultBO;
import com.finance.rule.bean.pojo.WeightRangeRule;
import com.finance.system.bean.pojo.Region;
import com.finance.system.bean.pojo.Supplier;

import java.util.List;


/**
 * 重量区间管理业务接口
 * Created by CBWL on 2017/3/17.
 */
public interface IWeightRangeService {

    PageResultBO<WeightRangeRule> listByPage(Page page);

    WeightRangeRule getById(Long id);

    boolean add(WeightRangeRule weightRange);

    boolean update(WeightRangeRule weightRangeRule);

    boolean del(String uid,List<String>ids);
    List<WeightRangeRule> getWeightRangeRuleBySupplier(Supplier supplier);
    List<WeightRangeRule> getWeightRangeRuleByDirection(DirectionEnum directionEnum);
    List<WeightRangeRule> getWeightRangeRuleBySendRegion(Region region);
    List<WeightRangeRule> getWeightRangeRuleBySignRegion(Region region);

}
